package com.lysj.bhp.financial.controller;

import com.lysj.bhp.financial.base.FinancialContent;
import com.lysj.bhp.util.web.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zk
 * @description
 * @create 2018-07-20 16:50
 **/
@RestController
@RequestMapping("admin/user_earnings")
public class UserEarningsController extends FinancialContent {

    @GetMapping("/list")
    public Resp list() {
        return new Resp(userEarningsRepository.findAll());
    }

}
